//头部组件状态管理
export const moduleHeader = {
    namespaced: true,
    state: {
        appTitle: '通用后台管理系统',
        asideStatus: false
    },
    getters: {
        getAsideStatus(state) {
            return state.asideStatus;
        },
        getAppTitle(state) {
            return state.appTitle;
        }
    },
    mutations: {
        updateAsideStatus(state) {
            state.asideStatus = !state.asideStatus;
            if (state.asideStatus) {
                state.appTitle = '通用'
            } else if (!state.asideStatus) {
                state.appTitle = '通用后台管理系统';
            }
        }
    },
    actions: {}
}